<%--
    Document   : temp
    Created on : Oct 4, 2012, 4:10:02 PM
    Author     : MinhThang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add news</title>
        <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="../style/style.css" rel="stylesheet" type="text/css" media="screen" />

        <script type="text/javascript" src="style/js/jquery.js"></script>
        <script type="text/javascript" src="style/js/jNice.js"></script>
        <script type="text/javascript" src="../fckeditor/fckeditor.js"></script>

    </head>
    <body>
        <%
                    if (session.getAttribute("AdminUser") == null || session.getAttribute("AdminUser").toString() == "") {
                        response.sendRedirect("/Admin/adminlogin.jsp");
                    }
        %>
        <div id="wrapper">
            <h1><a href="#"><span>Admin Paper Presentation</span></a></h1>
            <div><%@include file="Template/header.jsp" %></div>
            <div id="containerHolder">
                <div id="sidebar">
                    <ul class="sideNav">
                        <li class="limenu"><a href="adminnews.jsp" >List News</a></li>
                        <li class="limenu"><a href="#" class="active">Add News</a></li>
                    </ul>
                    <!-- // .sideNav -->
                </div>
                <h2><a href="#">News >></a> <a href="#" class="active">Add news</a></h2>
                <div id="main">
                    <form action="addnews.do" method="post" class="jNice">
                        <table border="1" width="100">
                            <tr>
                                <td>Title :</td>
                                <td><input id="textinput" type="text" name="txtTitle" value="" size="40" /></td>

                            </tr>
                            <tr>
                                <td>Summary :</td>
                                <td><input id="textinput" type="text" name="txtSummary" value="" size="40" /></td>

                            </tr>
                            <tr>
                                <td>Author :</td>
                                <td><input id="textinput" type="text" name="txtAuthor" value="" size="40" /></td>
                            </tr>
                            <tr>
                                <td>Image :</td>
                                <td><input id="textinput" type="file" name="fileImage" value="" size="40" /></td>
                            </tr>
                            <tr>
                                <FCK:editor instanceName="editorDefault" height="400">
                                    <jsp:attribute name="value">
                                    <p style="font-weight: bold; font-family: Verdana">

                                    </p>
                                </jsp:attribute>
                            </FCK:editor>
                            </tr>
                            <tr>
                                <td align="right">
                                </td>
                                <td>
                                    <input id="pagestatus" type="submit" value="Upload" name="btnUpload" />
                                    <input id="pagestatus" type="reset" value="Clear" name="btnClear" />
                                </td>

                            </tr>
                        </table>
                    </form>
                </div>
                <!-- // #main -->
                <div class="clear"></div>
            </div>
        </div>
    </body>
</html>
